// Machine machine = instanceHelpers.getMachine(pgServer);
//
// String address = machine.getBestAddress(NetworkPoint.forTargetInContext(), POSTGRES_PORT);
// PostgresTarget mysql = new TunneledPostgresTarget(address, username, password);
DatabaseTarget db = new TunneledDatabaseTarget(target, username, password, databaseName);
return db;
}