Updated SQL schemas for FOREIGN KEY changes