add log to mongodb