Fix gp_replica_check to cope with database names with quotes.
Fix gp_replica_check to cope with database names with quotes.

It previously didn't make any attempt at quoting and escaping database
names. It's just a developer tool at the moment, but if it can't deal
with funny characters, that gets in the way of testing other parts of
the system with them.

lisakowen/gpdb,lisakowen/gpdb,adam8157/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,adam8157/gpdb,jmcatamney/gpdb,50wu/gpdb,adam8157/gpdb,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,ashwinstar/gpdb,50wu/gpdb,jmcatamney/gpdb,lisakowen/gpdb,lisakowen/gpdb,greenplum-db/gpdb,50wu/gpdb,greenplum-db/gpdb,lisakowen/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,ashwinstar/gpdb,xinzweb/gpdb,ashwinstar/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,50wu/gpdb,ashwinstar/gpdb,adam8157/gpdb,jmcatamney/gpdb,adam8157/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,xinzweb/gpdb,xinzweb/gpdb,xinzweb/gpdb,ashwinstar/gpdb,50wu/gpdb,xinzweb/gpdb,adam8157/gpdb,greenplum-db/gpdb,xinzweb/gpdb,50wu/gpdb,50wu/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,jmcatamney/gpdb