def METHOD_NAME(self, table, database):
    """Initialize the database and handles.
    :param table: The table name to create
    :param database: The database uri to use
    """
    self._engine = sqlalchemy.create_engine(
        database,
        echo=False,
        connect_args={"check_same_thread": False},
        poolclass=StaticPool,
    )
    self._metadata = sqlalchemy.MetaData(self._engine)
    self._table = sqlalchemy.Table(
        table,
        self._metadata,
        sqlalchemy.Column("type", sqltypes.String(1)),
        sqlalchemy.Column("index", sqltypes.Integer),
        sqlalchemy.Column("value", sqltypes.Integer),
        UniqueConstraint("type", "index", name="key"),
    )
    self._table.create(self._engine)
    self._connection = self._engine.connect()