add getCourseByCourseId

also fix course model, courseId needs indexed.