Fix problem pruning changes from the data base,  it will cascade delete/update when we have a FK to the affected table.