for each data file { check for bad data and skip file if found repair damaged data calculate statistics add to database add to report }