Logging information from quai to MongoDB