How to do Vlookup

I think you can use a spreadsheet instead of TinyDB. Spreadsheets are like excel (excel is a spreadsheet) so you can navigate beetween columns. Take a look to documentation and do a search on community to have some tips.

If you prefer to use TinyDB (as me), you can store as value a list of values so when you search for State you get a list and you know that first element is Capital, second is Population and so on and you can get the value you need.
Take a look to:
http://community.thunkable.com/t/tinydb-advanced-use/14700