set query class to base_class