I think the file Tom sent you was "created" by WC. But not from scratch. It simply used a file full of WC "Tags", swapped in the data specified and uploaded it. I have a similar file for a template I once used that looks very similar. I think it is used by the Leuven template. It's been a long time since I used that template, but I think the file was included in the package and the user simply loads it on their drive and tells WC where to find it. WC handles it from there until it gets uploaded.
The template can use the data and the related definitions pair for whatever purpose the template developer wants. I think the Leuven template uses it to display all the data, as needed. I don't see why another 'template' couldn't use it to populate an SQL database. WC already uploads new data on a schedule determined by the user as well as building Daily, Weekly, Monthly, and Yearly stats. Of course, a database could use the data in as many ways as the developer can imagine (and code!).
Just remember, all I've written is pure supposition on my part! I simply use the data WC provides and usually manipulate the "MPH/mph/etc." myself, just because I'm different (
strange?)! Same reason I don't use a template, anymore. At my age, I want things done
my way! Frankly, I'm more interested in the display than the historical values!
!!HERESY!!