@frozenbaby:
One useful thing to add, would be (like in mysql) queries.
So like:
select this row of data where this column is this value.
Lets say:
You have two tables (both with running numbers 0,1,..." as first colomn)
Now in the first table you have a NPC at all its attributes, and in the second the quests of the game.
Now the NPC has a column with an array of all the quest you can get from him.
Now one of those value (from the array of the npc quest number column) is the "running number" (index) in the quest table.
So you want to get the 'title' and 'discription' out of the quest table by taking the number of the npc table.
You know all those mysql query kinda things

Hope this was understandable somehow.