Added foreign key references in hints tables