empty table tmp before insert