code: def atlasdb_load_peer_table( con=None, path=None ):
      
      peer_table = {}
      
      with AtlasDBOpen(con=con, path=path) as dbcon:
  
          sql = "SELECT * FROM peers;"
          args = ()
  
          cur = dbcon.cursor()
          res = atlasdb_query_execute( cur, sql, args )
  
          # build it up 
          count = 0
          for row in res:
             if count > 0 and count % 100 == 0:
                 log.debug("Loaded %s peers..." % count)
  
             atlas_init_peer_info( peer_table, row['peer_hostport'] )
             count += 1
  
      return peer_table
docs: Create a peer table from the peer DB