Cleaned up postgresql replication monitoring queries