add uniqueness constraints
update schema