Move contraint on table studywav from idstudy to idstudyprocedure