Finish refactoring of MySQLi

a few tests failed due to knew issue, I will disscuss with dmitry later