merging in Postgres database code