Handle DNS resolution error in graphite handler
DatabaseReplicationStats should only be for extended

Not everyone uses replication
Add stats for monitoring xid wraparound
fix #747

added a test as well. reviews of the test are welcom