changing db to pg