fix postgres for non-pool users
Merge pull request #958 from mickhansen/no-pool-postgres

fix postgres for non-pool users