Updated Mongoose connect to be separate snippets