add Constraint to each table
1.add preference item so preferList can be sortable
2.add weight column in PPreference and SPreference
3.update testcase