write to mongodb, form for lessons