code: def namedb_create(path, genesis_block):
      
  
      global BLOCKSTACK_DB_SCRIPT
  
      if os.path.exists( path ):
          raise Exception("Database '%s' already exists" % path)
  
      lines = [l + ";" for l in BLOCKSTACK_DB_SCRIPT.split(";")]
      con = sqlite3.connect( path, isolation_level=None, timeout=2**30 )
  
      for line in lines:
          db_query_execute(con, line, ())
  
      con.row_factory = namedb_row_factory
  
      # create genesis block
      namedb_create_token_genesis(con, genesis_block['rows'], genesis_block['history'])
      return con
docs: Create a sqlite3 db at the given path.
      Create all the tables and indexes we need.