Add code and Settings switch to delete database on restart.