add JSON importer, add PdoStorageException, restructure database a bit