removing temp files and database settings