code: def _dbsetup(self):
          
          self._dbconn = sqlite3.connect(self._db_file)
          # Create table for multiplicons
          sql = '''CREATE TABLE multiplicons
                   (id, genome_x, list_x, parent, genome_y, list_y, level,
                    number_of_anchorpoints, profile_length, begin_x, end_x,
                    begin_y, end_y, is_redundant)'''
          self._dbconn.execute(sql)
          # Create table for multiplicons ('order' appears to be reserved)
          sql = '''CREATE TABLE segments
                   (id, multiplicon, genome, list, first, last, ord)'''
          self._dbconn.execute(sql)
          self._dbconn.commit()
docs: Create/open local SQLite database