I finally got back to working on this POC, and I was able to get it mostly working. The only issue right now is that the template magic is attempting to create code for which the types don't match and don't cast decay nicely. That is if you try to assign a std::string to a tuple. Hopefully I can fix this with a bit of massaging.
Adding sqlite proof-of-concept. This code does not compile due to some template issues but I want to keep track of it none the less.