implemented Lesson Block database class.