JSON util refactoring, dbstorage updates, no use of shared ptr.