code: def db_connect(cls, path):
          
          con = sqlite3.connect(path, isolation_level=None, timeout=2**30)
          con.row_factory = StateEngine.db_row_factory
          return con
docs: connect to our chainstate db