made some changes in the batch_flat_cohort_table_load