Added config file, modified server.js to connect to mongodb via mongoose