Added mongoose to package.json and then required it on app,js