Connected app to mongodb