add Query Class