saving lecture to db