changes database to pg