input: Write a python function to scrape addresses from a list of websites and store them in a database. 
  assert scrape_addresses(["example1.com", "example2.com", "example3.com"]) == ['Address1', 'Address2', 'Address3']
  assert scrape_addresses(["example4.com", "example5.com"]) == ['Address4', 'Address5']
  assert scrape_addresses([]) == []
output: def scrape_addresses(websites):
      import requests
      from bs4 import BeautifulSoup
      import sqlite3
  
      def extract_address(html):
          soup = BeautifulSoup(html, 'html.parser')
          address = soup.find('div', class_='address')
          return address.get_text(strip=True) if address else None
  
      conn = sqlite3.connect(':memory:')
      cursor = conn.cursor()
      cursor.execute('CREATE TABLE addresses (url TEXT, address TEXT)')
      
      addresses = []
      for url in websites:
          response = requests.get(f'http://{url}')
          if response.status_code == 200:
              address = extract_address(response.text)
              if address:
                  cursor.execute('INSERT INTO addresses (url, address) VALUES (?, ?)', (url, address))
                  addresses.append(address)
      
      conn.commit()
      conn.close()
      return addresses