input: Write a function to create a Flask application that supports a form with fields 'Name', 'Email', and 'Phone', and stores the submitted data into a SQLite database. Implement the function and test it using the given assertions.
  
  from flask import Flask, request, redirect
  import sqlite3
  
  app = Flask(__name__)
  
  @app.route('/submit', methods=['POST'])
  def submit():
   name = request.form.get('name')
   email = request.form.get('email')
   phone = request.form.get('phone')
   
   conn = sqlite3.connect('data.db')
   cur = conn.cursor()
   
   cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
   conn.commit()
   
   return redirect('/')
  	
  assert submit({'name': 'John', 'email': 'john@example.com', 'phone': '1234567890'})==redirect('/')
  assert submit({'name': 'Jane', 'email': 'jane@example.com', 'phone': '0987654321'})==redirect('/')
  assert submit({})==redirect('/')
  assert submit({'name': 'Doe', 'email': '', 'phone': ''})==redirect('/')
  assert submit({'name': '', 'email': 'doe@example.com', 'phone': ''})==redirect('/')
output: 
  def submit():
      name = request.form.get('name')
      email = request.form.get('email')
      phone = request.form.get('phone')
      
      conn = sqlite3.connect('data.db')
      cur = conn.cursor()
      
      cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
      conn.commit()
      
      return redirect('/')
  