Got the database loading and downloading working. It will now fetch the JSON file if it's missing, or open the existing one. The resulting struct is DATASETS and is usable within JavaScript code