fix connecting to a live postgres db

At least when connecting via a UNIX socket, though
I don't see why it wouldn't work with a regular host.