/** Constructor for the ExamRepository, creates a MongoDB connection */ public ExamRepository() { DB db = MongoConnection.getInstance().getDB(); coll = db.getCollection("exams"); }