input: Write a function to create an application using Python and Flask to submit form data (Name, Email, Phone) and store it in a database. Provide a route to render the form and another route to handle the form submission and database insertion. Return the appropriate responses and ensure the application runs in debug mode.
  assert home()==None
  assert submit("John", "john@example.com", "123-456-7890")==None
  assert insert_data("John", "john@example.com", "123-456-7890")==None
output: 
  from flask import Flask, request, render_template
  import sqlite3
  
  app = Flask(__name__)
  
  def home():
      return render_template('form.html')
  
  def submit(name, email, phone):
      conn = sqlite3.connect('database.db')
      cursor = conn.cursor()
      cursor.execute('''CREATE TABLE IF NOT EXISTS contacts
                        (name TEXT, email TEXT, phone TEXT)''')
      cursor.execute("INSERT INTO contacts (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
      conn.commit()
      conn.close()
      return None
  
  def insert_data(name, email, phone):
      submit(name, email, phone)
      return None
  
  if __name__ == '__main__':
      app.run(debug=True)
  