implemented json parsing/printing for reference database