PostgreSQL query builder for node