input: Write a function to create a Python and Flask application that submits form data (Name, Email, Phone) and stores it in a SQLite database. The function should define a Flask app, render a template for the form, and handle form submission to insert the data into the database. If the app runs successfully, return True, otherwise return False.
  assert submit_form_data()==True
output: def submit_form_data():
      from flask import Flask, render_template, request
      import sqlite3
  
      app = Flask(__name__)
  
      def create_table():
          conn = sqlite3.connect('form_data.db')
          cursor = conn.cursor()
          cursor.execute('''
              CREATE TABLE IF NOT EXISTS submissions (
                  id INTEGER PRIMARY KEY AUTOINCREMENT,
                  name TEXT NOT NULL,
                  email TEXT NOT NULL,
                  phone TEXT NOT NULL
              )
          ''')
          conn.commit()
          conn.close()
  
      @app.route('/', methods=['GET', 'POST'])
      def index():
          if request.method == 'POST':
              name = request.form['name']
              email = request.form['email']
              phone = request.form['phone']
  
              conn = sqlite3.connect('form_data.db')
              cursor = conn.cursor()
              cursor.execute('INSERT INTO submissions (name, email, phone) VALUES (?, ?, ?)', (name, email, phone))
              conn.commit()
              conn.close()
  
              return "Data submitted successfully!"
  
          return render_template('form.html')
  
      create_table()
  
      try:
          app.run(debug=False)
          return True
      except Exception as e:
          return False