moving index/key creation until after batch inserts from TEMP_KREW_* table to KREW_* tables
adding code to drop temp tables