Forum OpenACS Q&A: Re: Just the database API
I could send you an old tarball of that code if you want. However, it's old ACS 4.2 stuff, and somewhat hackish. I have not yet tried doing the same with recent OpenACS code, but based on my past experience I'm sure it could be made to work. (On snafu might be dealing with the query dispatcher, however.)
At any rate, I too would like to see the current OpenACS Tcl code be refactored for easy, drop-in use in non-OpenACS AOLserver environments, but so far I haven't done anything about it. It's rather far down on my personal list of priorities, currently. But definitely worth doing.