moved configuration in app.js to config.js; added mongoose configuration
added the user model