change mysql2 to pg