add unique indexes to users