Logging to mongoDB

Logging to mongoDB