Add course_id to chapter, migrate db