add json db and form read/write