adding logic to mongodb
remove logging