Cdodge/add social stats

what if the course_id is for an invalid course?  Probably should include some exception handling for that case as we do in other spots