input: Write a python function to fetch data from an API, store it in a SQLite database, and insert data into a specific table.
  ```python
  assert fetch_and_store_data('http://api.example.com/resources', 'database.db') is None
  # Example database assertions (usually need to connect to the database and query to test)
  # assert check_database_content('database.db', 'resources') == [(1, 'Resource 1'), (2, 'Resource 2')]
output: import requests
  import sqlite3
  
  def fetch_and_store_data(api_url, database):
      # Fetch data from API
      response = requests.get(api_url)
      data = response.json()
      
      # Connect to SQLite database
      conn = sqlite3.connect(database)
      cursor = conn.cursor()
      
      # Create table if it doesn't exist
      cursor.execute('''
          CREATE TABLE IF NOT EXISTS resources (
              id INTEGER PRIMARY KEY,
              name TEXT NOT NULL
          )
      ''')
      
      # Insert data into the table
      for item in data:
          cursor.execute('INSERT INTO resources (id, name) VALUES (?, ?)', (item['id'], item['name']))
      
      # Commit changes and close the connection
      conn.commit()
      conn.close()