Changed stock id to foreign key in stock order table