How are you pulling the list above? Database and a web front I can do but I don't know LUA (guess I got some learning to do there). If we could do the list above and maybe append the seed this can become an rather straight forward insert and the lookup is just a matter of a clean select.
The question would become how often trade stock updates? I know factory stock updates as time advances since it creates new items. Do traders and stations update their stocks as well, if so we would need to do a new insert each time you enter a sector.