Only loop through databases once

When mapping databases for API calls, only loop through the list once.
Merge pull request #933 from catsby/tune_hp_info_calls

Only loop through databases once