update index.html and query.php