connect to pg via a socket in production