Added foreign key protection instead of cascade