input: Write a python function to create an SQLite database, fetch a webpage, parse anchor tags, and store the data in the database.
  assert fetch_and_store_data('https://example.com/') == 'Data successfully stored in example.db'
  assert fetch_and_store_data('https://anotherexample.com/') == 'Data successfully stored in example.db'
  assert fetch_and_store_data('https://yetanotherexample.com/') == 'Data successfully stored in example.db'
output: import sqlite3
  import requests
  from bs4 import BeautifulSoup
  
  def fetch_and_store_data(url):
      # Fetch the webpage content
      response = requests.get(url)
      response.raise_for_status()  # Raise an error for bad status codes
  
      # Parse the HTML content
      soup = BeautifulSoup(response.content, 'html.parser')
      anchors = soup.find_all('a')
  
      # Create SQLite database and table
      conn = sqlite3.connect('example.db')
      cursor = conn.cursor()
      cursor.execute('''
          CREATE TABLE IF NOT EXISTS anchors (
              id INTEGER PRIMARY KEY,
              url TEXT
          )
      ''')
  
      # Insert anchor tags into the database
      cursor.executemany('INSERT INTO anchors (url) VALUES (?)', [(a.get('href'),) for a in anchors if a.get('href')])
  
      # Commit the changes and close the connection
      conn.commit()
      conn.close()
  
      return 'Data successfully stored in example.db'