Added connection to mongo db.