fixed typo, added FOREIGN KEY constraint