G'day Hans,
That sounds wickedly interesting, but way beyond the scope of my project, I think. I reserve the right for a long chew, or long bout of paralysis by analysis.
What I'm building is the kind of thing that would spit out DDL (i.e. the create statements for tables, indexes, views, foreign/primary/etc. constraints), the kind of stuff to create a database. Not the kind of stuff for interacting with a database via SQL (select, insert, update, delete).
Using TiddlyWiki to access a database has been simmering in the far recesses of my mind, but that is a complicated affair, a whole bunch of technical skills I don't have at all.
However, if we are talking get TiddlyWiki to generate SQL statements that can be cut and pasted into other software that accesses a database, that could be a fun project, although likely one for a year or two down the road. If TiddlyWiki can spit out DDL, it can equally spit out SQL.
So many possible projects, so few hours in a day. Other projects I've been tossing around in my head: a TiddlyWiki Report builder (kind of like Crystal Reports?), and a TiddlyWiki Forms Designer.