Generates a new token for the given user
The database to use
The user to generate the token for
The email to associate with the token
The type of the token
The generated token
Generates a new token for the given user