Thank you. I've been saying this for years. I'm glad someone else can see that the Emperor has no clothes.
SQL sucks. Not the concept of a relational database; that's something that's pretty cool. But the so-called "Structured Query Language" used to interact with the database is the worst affront to programming ever(*). It's not bad for user interaction, and I know it was an easy path to hacking in database support for languages that didn't have it. But for crying out loud, continuing to use it is just like passing a single string to the shell for execution. You never do that, you use execv() or whatever your language has for a wrapper around it. At the very least you should be able to do the same damned thing for your database!
(* One could argue that PHP or AppleScript are worse. I won't quibble.)