Oops, somehow managed to delete my reply. But I was saying this sounds like a lot of bookkeeping. With the amount of data and all the relations, I'd almost rather do a SQL database than a bunch of arrays or similar for it.