Adding sql to enable proper delete cascade for extra data table