add code to update sharedPreference when exporting sensor db, deleted some obsolete codes