Modifiche DB: fixed errors on some FOREIGN KEYs