though the database schema needs to hold some data as text of json versions of dicts and lists, the scandb interface should handle all of this: encoding to json on storage, decoding from json on retrieval. Currently, it's kind of a mess with json decoding/encoding happening in GUI and/or server code.