Cf340 cf343 cleanup schema

[CF-340/CF-343] Productize Preferences Service - clean up schema
      - Created id column for metadata and used it as foreign key in preferences table
      - Modified Preferences Service
:+1: I'm glad you figure this out! One less thing to copy around manually!