Postgres helper class