Tried read-write samples for Preferences and DB IO