MySQL to MySQLi

Kohana used MySQL, now deprecated, and thanks to Azuka now we use MySQLi