changed foreign key actions to cascade