Pass MongoDB connection to model class