So, we use Rhino (JavaScript) for handling commands and yes; that is stored within an object that mimics a map/hash. That is the easiest way to do it in my mind, lookup the key, get the value, and print (parse) the value however you see fit.
Glad you like SQLite3. I really enjoy it for small database needs and it also scales up fairly well. There are some performance options you can use if it does seem as if it will grow a lot as well.
Cheers