I think sunshine is on the right way and a bit more concrete about the homegrown MDA you can use to specify the Query/CRUD engine part.
For the product I was working with my last employer we had special tools that were able to generate code for SQL stored procedures, DDL, C# Mapping (table) code aso., for about 90% of the standard CRUD stuff we needed. Wasn't UML based, I couldn't convince me or my bosses of appropriate UML usage would make sense in our environment. Hmm but I didn't knew EA that time, only MS-Visio and that thingey was consuming more time than it was likely to save (especially when you tried to roundtrip generated code from your models).
At least what always somehow made troubles where that missing 10% that were outside the straightforward standard stuff (e.g. specially "mirrored" change-history tables for certain (business)-critical data, customized data & behaviour, special purpose data mining, performance & scalability tweaks, etc.). I'm afraid those will be left by any transformation(s) from a "master model" in a very similar way. This stuff was "lovingly" handcrafted code (of all kinds SPL, windrops-script, xslt, C# and a bunch more).
Just another 0.02 EUR upon sunshine's
Günther