Change of database design, add some unique constraints.