Added foreign keys to table stock