add json support

db from/to json file
update