store all dbs in $data array, modify template per ESDet/esdportal_scoresbybcode#2
refs #3716