Update baseQuery.php