updated database adapter to postgres, not pg