Add connection to MongoDB and get single document from training