input: Write a Python function to fetch data from a public API and store it in a local SQLite database using SQLAlchemy.
  assert fetch_data() == {'message': 'Data successfully fetched'}
  assert isinstance(fetch_data(), dict)
  assert fetch_data().get('message') == 'Data successfully fetched'
output: import requests
  from sqlalchemy import create_engine, Column, Integer, String, Sequence
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import sessionmaker
  
  Base = declarative_base()
  
  class Data(Base):
      __tablename__ = 'data'
      id = Column(Integer, Sequence('data_id_seq'), primary_key=True)
      key = Column(String(50))
      value = Column(String(50))
  
  def fetch_data():
      url = 'https://jsonplaceholder.typicode.com/posts/1'
      response = requests.get(url)
      data = response.json()
      
      engine = create_engine('sqlite:///data.db')
      Base.metadata.create_all(engine)
      Session = sessionmaker(bind=engine)
      session = Session()
  
      session.add(Data(key='userId', value=str(data['userId'])))
      session.add(Data(key='id', value=str(data['id'])))
      session.add(Data(key='title', value=data['title']))
      session.add(Data(key='body', value=data['body']))
      
      session.commit()
      session.close()
  
      return {'message': 'Data successfully fetched'}