datadefinition: More Integrity constraints

-implement weak entities CaseNote and PersonNote by a delete cascade
-implement reference to user as references User