Update queryAPI.php