add cascade on delete to tables

For easier deletion of objects.