Changed to MySQL backend Cascade Deletes

Changed from a logic based delete, to using a FKC cascade
based system in MySQL. Changes speed up the function and minimize
database call. This will only work if you are running the correct
database schema version.