add Query class in Command package.