beginnings of Postgres integration