Fix Example Init Code

Fix field declarations and references so that foreign keys and references work.

Foreign keys need to be declared as unsigned .
Correct Foreign key field mapping.