using base class for all queries