Upgraded to PDO instead of MySQLi