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