Updating Main Page to MySQLi