checking sql to read course id with assessment data