Remove hard-coded settings, defer to env. vars

PGUSER
PGPASSWORD
PGHOST
PGPORT

Other minor syntax simplifications