Removed a lot of logic, moved the connection string to use process.env.MONGODB_URI which is set either in config.js that is only local or on the deployment environment