Insert into the db the relations between upeople_id and affiliations.