Parse args more sensibly, and use correct port for postgres connection