Updated for pg.native rather than pg.js