type error; FOREIGN KEY error