Silly errors
Added cascading delete option
Clear ids when child tables have been deleted