Update DatabaseQuery.cpp