fix incorrect error msg in postgres sync script for DB replication