added dquery.cpp