Add support for mysqli database operations in class.database.php