Fixed external Mongoose Model

If you are interested, I made it work the project with an external Mongoose model, saved in `model.js`