def insert_chatsession(self, session_id, session_owner,session_topic, start_time,thread_id = ""):
        """ insert a new session into the ChatSessions table """
        try:
            conn = self._get_conn()
            conn.execute("""
                INSERT INTO ChatSessions (SessionID, SessionOwner,SessionTopic, StartTime,SummarizePos,Summary,ThreadID)
                VALUES (?,?, ?, ?,0,"",?)
            """, (session_id, session_owner,session_topic, start_time,thread_id))
            conn.commit()
            return 0  # return 0 if successful
        except Error as e:
            logging.error("Error occurred while inserting session: %s", e)
            return -1  # return -1 if an error occurs
 insert a new session into the ChatSessions table 
src/aios/agent/chatsession.py