public final Fixture runInDatabaseQueryAndCleanupDatabases(
final String database, final String query, final boolean cleanupDB) {
DB srcDB = getDB(src, database);
DB tgtDB = getDB(tgt, database);
Number srcResult = (Number) srcDB.eval(query);
Number tgtResult = (Number) tgtDB.eval(query);
if (cleanupDB) {
cleanupDBs(srcDB, tgtDB);
}
Result result = new Result(srcResult.longValue(), tgtResult.longValue());
return new SetFixture(Collections.singletonList(result));