Not SQL, but "if you've been looking for a fast, global-search and tag-based email system to use within your text editor or in a terminal..." https://notmuchmail.org/
Mostly exchanging cat pictures with a good friend, keeping subject empty as it remains unencrypted. Once Enigmail is set up, it's basically harder to not encrypt.
Apart from easy web access, is there more to the HTTP than the NNTP interface of Gmane? Like search over every message, maybe? If not, people should find their favourite newsreader and be all set, cf. https://en.wikipedia.org/wiki/List_of_Usenet_newsreaders
It's not futile to un-Google. Every little bit helps. It's not too difficult to use another search engine, to choose a smaller email provider, to set-up Thunderbird with Enigmail, to set-up Owncloud on a server and/or your own NAS.
Once hacked tw.sh [1] to read read tweets in newsbeuter or liferea RSS reader. Translates displayed URL into href to not redirect via Twitter (would be nice for Krill, too). Too much scraping may get you locked, though.