changed database to pg