detect_dm_csv function

Automatically detect data models for CSV-files