input: Write a function to create a Flask application that accepts form data (Name, Email, Phone) via a POST request, stores the data in a SQLite database, and redirects to the home page. The function should return the Flask application object.
  assert create_flask_app().__name__ == '__main__'
  assert create_flask_app().__class__ == Flask
output: def create_flask_app():
      from flask import Flask, request, redirect, url_for
      import sqlite3
  
      app = Flask(__name__)
  
      def create_table():
          conn = sqlite3.connect('data.db')
          c = conn.cursor()
          c.execute('''CREATE TABLE IF NOT EXISTS users
                       (name TEXT, email TEXT, phone TEXT)''')
          conn.commit()
          conn.close()
  
      @app.route('/', methods=['GET', 'POST'])
      def home():
          if request.method == 'POST':
              name = request.form['Name']
              email = request.form['Email']
              phone = request.form['Phone']
              conn = sqlite3.connect('data.db')
              c = conn.cursor()
              c.execute("INSERT INTO users (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
              conn.commit()
              conn.close()
              return redirect(url_for('home'))
          return 'Home Page'
  
      create_table()
      return app