added function to retrieve lecture data by course id