Update queryFunctions.php