postgres: don't leak connections
postgres: log error if we try to configure a non-existant metric
postgres: add user function tracking