It's in the 'files' table. Look for entries where fields...
component = course
filearea = overviewfiles
The 'contextid' field points to the id in the 'context' table and the 'instanceid' in the corresponding record of that table gives you the courseid. Easy