Promise wrapper for node-postgres.