change db to pg