Stock inventory as a property of stock

* Adding stock inventory as a property of `stock` in the `stockprop` table.
* Each inventory is a group identified by value in column rank