Add constructor that takes a MongoCollection object.