def METHOD_NAME(self, mode: Mode) -> None:
    """We add a mode to the project"""
    self.__update_list_of_modes()
    if mode.mode_id in self.__all_modes:
        raise ValueError("Mode already exists in the model")
    self.curr.execute("insert into 'modes'(mode_id, mode_name) Values(?,?)", [mode.mode_id, mode.mode_name])
    self.conn.commit()
    self.logger.info(f"mode {mode.mode_name}({mode.mode_id}) was added to the project")
    mode.save()
    self.__update_list_of_modes()