Hooks for writing stats to Mongo