Serialization of current statistics to MongoDb.