change index of username in table users to unique