getCohortTableNames function

Used to get a list of cohort table names to use when creating the cohort tables