add save log to mongodb