Convenience functions for node-postgres