added conditional loading and testing of the MongoDBLogger, only if mongod is already running