Delete temp files after updated databases