Fix MongoDBStorage and add extra logs