database in files based on JSON data