<feature/sync-engine> save Segments, ActivityRecords and link between #138