Mysqli class support

Mysqli doesn't use resource like mysql does, since [mysqli_connect](http://php.net/manual/en/function.mysqli-connect.php) returns mysqli object.