Do a search on the forum for the term sql.. It seems that not many people use sql with their bots, for one reason or another. If you do happen across some scripts or pages, please drop me a PM on here.
I've been messing with an eggdrop of mine using sql for some stuff, and I've been using the mysqltcl-2 library for interface for tcl->mysql. It can be found here: http://www.xdobry.de/mysqltcl/
I did a search on freshmeat and some other places and came up with that, and a couple others, but that one is the only one i've tried anything with, and 'man mysqltcl' is the documentation for it once installed.