Use a query cursor with node postgres