input: 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')
   
   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)
  
  """
  Create a Flask application that allows users to submit form data (Name, Email, Phone) and stores it in a SQLite database. The application should render an index page and redirect back to the index page after submission.
  
  Example:
  For the following form submission:
  Name: John Doe
  Email: johndoe@example.com
  Phone: 123-456-7890
  The application should store the data in the database and redirect back to the index page.
  
  Output:
  After submission, the data should be stored in the database, and the user should be redirected to the index page.
  """
output:     
      conn.close()
  