storage by database, SharedPreferences contains ID