title: Unknown error inserting in table in Python 3
body: <p>I'm trying to do a class to access a database in Sqlite3 in Python 3.
  The database was created and when I check if its inserting on the database I get the following error on the second line of the <strong>init</strong> method:</p>
  
  <pre><code>File "~/implementacao 2/Dabase_Connection.py", line 16, in __init__
      self.insert_in_database('database_name.db','table_name', '(\'111\',\'qqqq\')')
    File "~/implementacao 2/Dabase_Connection.py", line 33, in insert_in_database
      c.execute('INSERT INTO '+ table_name + ' VALUES ( '+ data +' )')# Insert a row of data
  sqlite3.OperationalError: near ",": syntax error
  </code></pre>
  
  <p>The code is this one:</p>
  
  <pre><code>def __init__(self):
          # self.create_database('database_name.db', 'table_name', 'id TEXT, data TEXT')
          self.insert_in_database('database_name.db','table_name', '(\'111\',\'qqqq\')')
          # self.delete_from_database('database_name.db', 'table_name', 'data1')
          # self.update_in_database('database_name.db','table_name', 'data', 'data_nova', 'data1')
          # self.insert_all_in_database('database_name.db', 'table_name', [('data1','data1'),('data2','data2'),('data3','data3'),('data4','data4')])
          # self.Search_in_database('database_name.db', 'table_name', 'data')
  
  
  def create_database(self,database_name,table_name,table_args):
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      c.execute('CREATE TABLE '+ table_name + '(' + table_args + ')')# Create table
      conn.commit() # Save (commit) the changes
      conn.close()# We can also close the connection if we are done with it.
  
  # INSERT INTO prontuarios VALUES(id,prontuario);
  def insert_in_database(self,database_name,table_name, data):
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      c.execute('INSERT INTO '+ table_name + ' VALUES ( '+ data +' )')# Insert a row of data
      conn.commit() # Save (commit) the changes
      conn.close()# We can also close the connection if we are done with it.
  
  def delete_from_database(self,database_name,table_name, chave):
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      c.execute('DELETE FROM ' + table_name +' WHERE Id= '+ chave +' ; ')# Insert a row of data
      conn.commit() # Save (commit) the changes
      conn.close()# We can also close the connection if we are done with it.
  
  def update_in_database(self,database_name,table_name, table_field, data, chave):
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      c.execute('UPDATE ' +table_name+ ' SET ' + table_field + ' = ' + data + ' WHERE id = ' + chave+' ;')# Insert a row of data
      conn.commit() # Save (commit) the changes
      conn.close()# We can also close the connection if we are done with it.
  
  # persons = [("Hugo", "Boss"),("Calvin", "Klein")]
  # Fill the table conn.executemany("'"insert into person(firstname, lastname) values (?, ?)", persons)
  
  def insert_all_in_database(self,database_name,table_name, data):
      data_interrog = self.get_parameters(data)
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      c.executemany('insert into ' + table_sifnature + ' values ( '+ data_interrog +' ) ', data)
      conn.commit() # Save (commit) the changes
      conn.close()# We can also close the connection if we are done with it.
  
  
  def Search_in_database(self,database_name,table_name, fields):
      conn = sqlite3.connect(database_name)
      c = conn.cursor()
      # Print the table contents
      for row in c.execute('select '+ fields + ' from ' +table_name):
          print(row)
  </code></pre>