store all dbs in $data array, modify template per ESDet/esdportal_scores...

Merge from Master

...bybcode#2

refs #3716