fix mysql2 deprecations