Added foreign key to missing tables

Added foreign keys to tables that was missing it in their structure, no
data has been touched or harmed