adds unique database constraint to user.email