Move mongoose config to server.js