PG check updates (connection, sizes, bgwriter)

* If pg connection drops, re-establish at next run (fixes #1003)
* Pick up per-table size stats (but not per index, fixes #1007)
* Change nature of bgwriter to monotonic counters (instead of simple counters)