Refactored mongoose.connect for new db config object

Changed the mongoose connect setup to use the new integrated `db` object mentioned [here](https://github.com/linnovate/mean/pull/737)