Changed from mysql2 to pg