input: Write a function to create a Flask application that handles form submissions for Name, Email, and Phone fields and stores the data in an SQLite database.
  
  ### Rationale for Task:
  This task aims to build a simple web application using Flask and SQLite with the functionality to capture and store user details like name, email, and phone number from an HTML form when a user clicks on the submit button.
  
  ### Instructions:
  1. Import the necessary libraries: Flask and sqlite3.
  2. Create a Flask application instance.
  3. Define a route for the main page that renders an HTML template containing a form with inputs for Name, Email, and Phone.
  4. Define a route for form submission that handles POST requests to capture and store the form data.
  
  ### Step-by-Step Solution:
  1. Import Flask and sqlite3.
  2. Initialize the Flask app.
  3. Create a route for the home page to display the form ('/').
  4. Create a route for handling form submissions ('/submit').
     - Extract form data from the request.
     - Open a connection to the SQLite database.
     - Insert the form data into the database table.
     - Redirect back to the home page after submission.
  5. Run the Flask application with debug mode enabled.
  
  ### Code to Complete the Task:
  
  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)
  
  
  ### Notes:
  - Ensure that the `index.html` file containing the form is placed in the `templates` directory.
  - Make sure that the SQLite table `data` is created with columns corresponding to `name, email, phone`.
output: 
  @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('/')
  