Connection to mongodb and fitbit