Add segment effort id's and retrieved detailed activities to db.