input: Write a python function to insert data into an SQLite database.
  assert insert_data('John Doe', 'john@example.com', '555-5555') == True
  assert insert_data('Jane Smith', 'jane@example.com', '555-1234') == True
  assert insert_data('Alice Johnson', 'alice@example.com', '555-9876') == True
output: def insert_data(name, email, phone):
      import sqlite3
      conn = sqlite3.connect('example.db')
      cursor = conn.cursor()
      cursor.execute('''CREATE TABLE IF NOT EXISTS contacts
                        (id INTEGER PRIMARY KEY, name TEXT, email TEXT, phone TEXT)''')
      cursor.execute('INSERT INTO contacts (name, email, phone) VALUES (?, ?, ?)', (name, email, phone))
      conn.commit()
      conn.close()
      return True