update many-to-many links