Replace mysql2 with postgres