Added delete cascades
Fix for search person results, modifying array whilst iterating prevented response from being returned