bring back original way of making db calls after reading SO post by author of node-postgres