[fixes #42960865] Add missing foregin keys
Merge pull request #86 from maxigit/42960865_add_foreign_keys_to_all_table

[fixes #42960865] Add missing foregin keys