Fix database innodb cascade on delete