First data validation before schema change added: duplicate keys on prim...

...ary/unique indexes

This holds the pure backend validation - nice frontend to be added

@karlitschek @bantu @bartv2 @icewind1991 @butonic