Relation detection (works to slow)
Problem with delete cascades still is not resolved.