Update Query.cpp