added on delete cascade to foreign keys in database