Get some easy to use function for node-postgres