add logging to MongoDB as well