Database scheme was fixed to get delete on cascade working