Decouple (automatic) preferences storage from user preferences (WIP)

DbStore, persisting preferences and tests not yet reworked.