updates server.js to connect to redis and mongodb when started