Have you thought about LuaSQLite ? With some simple wrappers in Lua
(metatables), you can use table syntax to read and update your data:
device = db:device('device name')
-- read db
print(device.name <http://device.name>)
-- update db
device.name <http://device.name> = xxx
If you really need to be able to hand edit the result, YAML is a very
good choice. JSON (or Lua tables) tend to become unreadable.
Gaspard