importtestresults made more efficient by caching id of last pass inserted into db