Replaced mysql driver with MySQLi driver