Added cascade delete on resource table