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)
  
  
  ### Instruction:
  Write a Flask application that captures and stores form data into a SQLite database. The form should have three fields: Name, Email, and Phone. Ensure the form submission redirects back to the main page after saving the data.
  
  ### Example:
  #### Input:
  - Form elements: Name (Bob), Email (bob@example.com), Phone (123-456-7890)
  
  #### Output:
  When the form is submitted with the above data, the application should save the data into the SQLite database and redirect to the main page.
output:     
      conn.close()
  