Updated MongoConnectivity calls to use a parameter for database