Class Diagram owns lists with DiagramCard and DiagramConnector. These are kept in sync with the person data in the database.
Each diagram holds a DiagramCard for each person. For each relation specified in Person records a connector is created. Changes in database (person data) requires synchronization of diagram cards and connectors.
Whenever database content changes, the diagram data is updated. This is needed because adding/removing persons or changing their parent's references needs updates of connectors.
Each diagram card identifies the associated person via ID. Diagram cards for IDs that no longer exist are deleted. Persons that are not yet referenzed via Diagram cards cause a default diagram card to be created.
Note: Person IDs are persistent. Deleting a person and creating a new person does not cause the DB to re-use the same ID.