updated db to pg