switch to pg for database