I also think about this sometimes, maybe not as only memory model but a simple scripting language with tight integration with sqlite would be pretty cool.
P.S. Actually if think I saw something similar somewhere in the past, if it comes to mind I'll send it