input: 
  from flask import Flask, render_template, request, redirect
  
  def submit_form_data(request) -> bool:
      """ Submits form data containing name, email, and phone to a database and returns a boolean 
      indicating whether the submission was successful.
      The function assumes that the Flask request object is available and contains the expected 
      form data. The database is accessed using SQLite3.
      >>> app = Flask(__name__)
      >>> with app.test_request_context('/submit', method='POST', data={'name': 'John Doe', 'email': 'john@example.com', 'phone': '1234567890'}):
      ...     submit_form_data(request)
      True
      >>> with app.test_request_context('/submit', method='POST', data={'name': 'Jane Doe', 'email': 'jane@example.com', 'phone': ''}):
      ...     submit_form_data(request)
      False
      """
      name = request.form.get('name')
      email = request.form.get('email')
      phone = request.form.get('phone')
      
      if not name or not email or not phone:
          return False
      
      import sqlite3
      conn = sqlite3.connect('data.db')
      cur = conn.cursor()
      
      cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
      conn.commit()
      conn.close()
      
      return True
  
output:     try:
          import sqlite3
          conn = sqlite3.connect('data.db')
          cur = conn.cursor()
          
          cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
          conn.commit()
          conn.close()
          
          return True
      except Exception as e:
          print(f"Error: {e}")
          return False