change database to pg