Fixed errors connecting to mongo db for sessions.