MySQLi Modification for index.php