First base class for query table view controller