It's certainly doable via SQL (put each field name into 'dictionary' table etc) but it seems a little hacky.
One could trivially transform an SD formatted structure to a JSON-like document and then dump that into CouchDB.