Words can't describe today's errors. I decided to move to mongodb on the cloud. It is been a long day of learning from errors. I had a lot of trouble getting mongodb to work again. In a nutshell:
- MongoDB In The Cloud With Atlas
- Connect to MongoDB Atlas cluster with Mongoose
- Stack overflow - lost track of the no of tabs open in this.
- Help from another developer.
I managed to fix the connection issue and also learnt an important lesson:
If it works don't touch it!!