keep track of connection count to postgres instances