Fix issue when using mysql under seamless_database_pool

When using the seamless_database_pool it masks the use of mysql2
This change correctly identifies the translation that should be used
without depending on the hack