I actually was able to solve my problem by appending a block of code after my db_multirow and saving the results to some Tcl vars that were passed to the adp template.
I was only able to find out that you could have block of code after a db_multirow by looking at the source code for the function. The documentation doesn't clearly say so. Another thing to review 😊