modified category editing, added ability to load db from json file