Update db to pg