Implemented mongoose on the app.js