Use temporary table instead of temporary db