logging to mongo