Update query.php