Added feature to override query class in RecordManager