changed db to pg