Upgrade mysql to mysql2