delete class ModelToTDB