I run the test cases in a suite. The first script file has all the test cases in it, and the test cases are all in includes. At the end of the script, I use ResExportOnClose() and save the results to a file. The next script opens the file, and parses it looking for failures. I then use DB_Connect( ) using a DSN to the database I want to log the results to, and use DB_ExecuteSql() to log the results using SQL.
It isn't terribly easy to do, and is pretty kludgey, but it works.
Beware of bugs in the above code; I have only proved it correct, not tried it.