switch db to pg