change database from mysql to pg.