If a DB is truly a store of data, then any language interpretation is going to be done by a language interpreter/compiler and not by the functions that store and retrieve data. You could think of SQL as a language that operates "inside" a database (though I would prefer the term "against" a database). With any Lisp, like Wolfram, you are halfway there as the language mixes data and instructions on purpose.