local database connection for postgres

Hi. The postgres ruby adapter supports local connections (via sockets) to postgres database if you skip `host` and `port` keys in config. So I've made some changes to allow this type of connection.