updated batch_flat_cohort_table_load script