Hello Randy,
Can you please try the same thing in latest version, which has nested loop support for the Database commands using session functionality so you can retrieve data using nested loops from different databases.
You can download the latest version of Automation Anywhere Server from,
Automation Anywhere Server - The Leading Automation Software
Hope that helps.