input: Write a function named `create_flask_app` that returns a Flask application object which has a route to submit form data containing "Name", "Email", and "Phone" fields, and stores this data in an SQLite database. The function should also include a route to render an HTML form to collect the data.
  assert create_flask_app().name == 'flask-app'
  assert create_flask_app().url_map.host_matching is None
  assert create_flask_app().url_map.redirect_defaults is None
  assert 'submit' in [rule.endpoint for rule in create_flask_app().url_map.iter_rules()]
  assert 'home' in [rule.endpoint for rule in create_flask_app().url_map.iter_rules()]
output: from flask import Flask, request, render_template
  import sqlite3
  
  def create_flask_app():
      app = Flask(__name__)
  
      def init_db():
          conn = sqlite3.connect('data.db')
          cursor = conn.cursor()
          cursor.execute('''
              CREATE TABLE IF NOT EXISTS users (
                  id INTEGER PRIMARY KEY AUTOINCREMENT,
                  name TEXT NOT NULL,
                  email TEXT NOT NULL,
                  phone TEXT NOT NULL
              )
          ''')
          conn.commit()
          conn.close()
  
      @app.route('/')
      def home():
          return render_template('form.html')
  
      @app.route('/submit', methods=['POST'])
      def submit():
          name = request.form['Name']
          email = request.form['Email']
          phone = request.form['Phone']
          
          conn = sqlite3.connect('data.db')
          cursor = conn.cursor()
          cursor.execute('INSERT INTO users (name, email, phone) VALUES (?, ?, ?)', (name, email, phone))
          conn.commit()
          conn.close()
          
          return "Data submitted successfully!"
  
      init_db()
      return app