Updated MySQLi database engine class

Base on
https://github.com/opencart/opencart/blob/f4bab7f8551fe9ae20540d08af9a03d5a79c7eb9/upload/system/database/mmysqli.php