Implemented automated failover and updated mongoose in package.json

Let the quest towards five nines begin!