Updated SQL schemas for FOREIGN KEY changes to remedy 150 error