switched db to pg