Query cursor extension for node-postgres