CSV data import and processing for TMG