update relationship and relationship type