def METHOD_NAME(self) -> "Engine":
    """Create the engine for the database."""
    settings_manager = get_settings_manager()
    if (
        settings_manager.settings.DATABASE_URL
        and settings_manager.settings.DATABASE_URL.startswith("sqlite")
    ):
        connect_args = {"check_same_thread": False}
    else:
        connect_args = {}
    return create_engine(self.database_url, connect_args=connect_args)