code: def create(self, name):
          
          with contextlib.closing(self.database.cursor()) as cursor:
              cursor.execute('INSERT INTO users(name) VALUES (?)', (name,))
              return cursor.lastrowid
docs: Create user with provided name and return his id.