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.
I've just noticed that `session_id` should be an integer, could you change that too please?