switched the remaining metric queries to build a look-up of series names via a single db query instead doing it during the main for loops