PROV-728 Fix SQL error due to duplicate temp table names when performing quicksearch