input: Write a python function to insert a dictionary into an SQLite database.
  assert insert_to_db({'name': 'Alice', 'age': 25, 'job': 'Data Scientist'}) == True
  assert insert_to_db({'name': 'Bob', 'age': 28, 'job': 'Product Manager'}) == True
  assert insert_to_db({'name': 'Charlie', 'age': 32, 'job': 'Designer'}) == True
output: import sqlite3
  
  def insert_to_db(data):
      try:
          # Connect to the SQLite database
          conn = sqlite3.connect('example.db')
          cursor = conn.cursor()
          
          # Create table if not exists
          cursor.execute('''
              CREATE TABLE IF NOT EXISTS people (
                  id INTEGER PRIMARY KEY AUTOINCREMENT,
                  name TEXT NOT NULL,
                  age INTEGER NOT NULL,
                  job TEXT NOT NULL
              )
          ''')
          
          # Insert the data into the table
          cursor.execute('''
              INSERT INTO people (name, age, job) VALUES (?, ?, ?)
          ''', (data['name'], data['age'], data['job']))
          
          # Commit the transaction
          conn.commit()
          
          # Close the connection
          conn.close()
          
          return True
      except Exception as e:
          print(f"An error occurred: {e}")
          return False