updated the relation tables