v4 adds DB access to REXX. If you look at http://www.tw-attac.com/scripting.html
you will see a sample script. There currently isn't anything to do what you're asking, but after beta 3 comes out, I'll look into adding that feature. Shouldn't be that hard at all, just have a few other pressing issues right now.