disabled clearing of the database on restart, added download templates feature