Flat JSON to CSV like non-sql database