Make user email column unique.
Retrieve a user by id or email.