code: def on_exit(self):
      self._exit_event.set()
      with _lock:
          self.store_database()
  
imports: import asyncio
  import os
  import sqlite3
  import sys
  import tempfile
  import threading
  import traceback
  from typing import List, Optional, Type, Union
  import uvicorn
  from fastapi import FastAPI
  from uvicorn import run
  from lightning.app.components.database.utilities import _create_database, _Delete, _Insert, _SelectAll, _Update
  from lightning.app.core.work import LightningWork
  from lightning.app.storage import Drive
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.imports import _is_sqlmodel_available
  from lightning.app.utilities.packaging.build_config import BuildConfig
label_desc: Use image node_id 7 for calling the Database obj's underlying member method code with example usage: obj.on_exit() without return types