postgres: use connection pool

Previously this was always using only a single connection to postgres, now it will use a connection pool (which is built into the `pg` library)
for clarity, I think all the get_postgres callbacks should be 'cb_p' or similar - right now there are too many 'cb's