log http requests to postgres