adapter mysql to mysql2