option to use persistent scratch database instead of creating temp database