private void recordNewUserInMongoDB()
        {
            // TODO Implement sanitation and validation methods.
            var          subscribersCollection = MongoUtil.retrieveCollection("smsAlerting", "subscribers");
            BsonDocument newSubscriber         = convertUserInputToDocumentFormat();

            insertNewSubscriberIntoDatabase(newSubscriber);
            Console.WriteLine("Successfully inserted the following subscriber into the Mongo database:" + newSubscriber.ToJson());
        }
        private void insertNewSubscriberIntoDatabase(BsonDocument subscriber)
        {
            int ward = subscriber.GetValue("ward").AsInt32;

            //Connecting to the database
            var subscribersCollection = MongoUtil.retrieveCollection("smsAlerting", "subscribers");

            //Perform the update to the database
            var filter = Builders <BsonDocument> .Filter.Eq("ward", ward);

            var update = Builders <BsonDocument> .Update.Push("subscribers", subscriber);

            //Execute the update
            subscribersCollection.UpdateOne(filter, update);
        }