Changed the replication overview status SQL
Fixed the web page globals