I won't answer your question in detail here, but I will give you a useful hint:
Loot structure is a complex system that is spread across 3 interconnecting tables
To better understand it its better viewed in a George Editor that shows you all 3 phases at the same time.
Once you looked it the loot system though George Editor you will better grasp the concept how it all interconnects.
http://www.georgestools.chrsschb.com//