implement backup data, add log to mongodb