<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_user(self, name: str, email: str) -> models.User: """Add a new user to the database."""

        new_user = self.User(name=name, email=email)
        self.add_commit(new_user)
        return new_user