improve import_queryset_batches and get_model