input: Write a function to create a Flask application that takes in form data containing Name, Email, and Phone, and stores this data in an SQLite database. If the data is successfully stored, redirect the user to the home page. If the input form data is incomplete, return an error message.
  
  assert create_flask_app()=='''from flask import Flask, render_template, request, redirect
  import sqlite3
  
  app = Flask(__name__)
  
  @app.route('/')
  def home():
   return render_template('index.html')
  
  @app.route('/submit', methods=['POST'])
  def submit():
   name = request.form.get('name')
   email = request.form.get('email')
   phone = request.form.get('phone')
   
   if not name or not email or not phone:
       return "Error: All fields are required."
   
   conn = sqlite3.connect('data.db')
   cur = conn.cursor()
   
   cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
   conn.commit()
   
   return redirect('/')
  	
  if __name__ == '__main__':
   app.run(debug=True)'''
  
  assert create_flask_app(form_data={'name': 'John', 'email': 'john@example.com', 'phone': '1234567890'})==True
  assert create_flask_app(form_data={'name': '', 'email': 'john@example.com', 'phone': '1234567890'})==False
  assert create_flask_app(form_data={'name': 'John', 'email': '', 'phone': '1234567890'})==False
  assert create_flask_app(form_data={'name': 'John', 'email': 'john@example.com', 'phone': ''})==False
output: 
  def create_flask_app(form_data):
      name = form_data.get('name')
      email = form_data.get('email')
      phone = form_data.get('phone')
      
      if not name or not email or not phone:
          return False
      
      conn = sqlite3.connect('data.db')
      cur = conn.cursor()
      
      cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
      conn.commit()
      
      return True
  