code: def instantiate_database(sqlite_file='ftwj.sqlite'):
      
      table_name = 'ftw'
      col1 = 'rule_id'
      col1_t = 'INTEGER'
      col2 = 'test_id'
      col2_t = 'STRING'
      col3 = 'time_start'
      col3_t = 'TEXT'
      col4 = 'time_end'
      col4_t = 'TEXT'
      col5 = 'response_blob'
      col5_t = 'TEXT'
      col6 = 'status_code'
      col6_t = 'INTEGER'
      col7 = 'stage'
      col7_t = 'INTEGER'
      conn = sqlite3.connect(sqlite_file)
      cur = conn.cursor()
  
      q = 'CREATE TABLE {tn}({col1} {col1_t},{col2} {col2_t},{col3} {col3_t},{col4} {col4_t},{col5} {col5_t},{col6} {col6_t},{col7} {col7_t})'.format(
          tn=table_name,
          col1=col1, col1_t=col1_t,
          col2=col2, col2_t=col2_t,
          col3=col3, col3_t=col3_t,
          col4=col4, col4_t=col4_t,
          col5=col5, col5_t=col5_t,
          col6=col6, col6_t=col6_t,
          col7=col7, col7_t=col7_t)
      cur.execute(q)
      conn.commit()
      conn.close()
docs: Create journal database for FTW runs