Remove unused variable in DatabaseQuery.cpp