Editing relationships between tables