Hope you don't mind the intrusion. I am experimenting with Moodle, and am still fairly new at it. I have racked my brains to find this out, but when you add a bunch of users from a CSV file, you can add fields group1, cohort1 and these are presumably associated with a course. Which table is this in in the databse?
Much appreciate if someone can help with this.