wiring up the subscribe button to MongoDB