Share preferences, db contract, helper, and associated tests