code: def create_message(message: Message, dbmanager: DBManager) -> None:
      """
      Save a message in the database using the provided database manager.
  
      :param message: The Message object containing message data
      :param dbmanager: The DBManager instance used to interact with the database
      """
      query = "INSERT INTO messages (user_id, root_msg_id, msg_id, role, content, metadata, timestamp, session_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
      args = (
          message.user_id,
          message.root_msg_id,
          message.msg_id,
          message.role,
          message.content,
          message.metadata,
          message.timestamp,
          message.session_id,
      )
      dbmanager.query(query=query, args=args)
  
imports: import json
  import logging
  import sqlite3
  import threading
  import os
  from typing import Any, List, Dict, Optional, Tuple
  from ..datamodel import AgentFlowSpec, AgentWorkFlowConfig, Gallery, Message, Session, Skill
label_desc: Use image node_id 1 for calling a global function with example usage: create_message(message, dbmanager) without return types