nsdbi provides a Tcl interface to an SQL database from within the naviserver web server.
It is a combination of the ideas from the original aolserver ns_db interface, the higher level interface provided by openacs, and some new features and performance improvements.