code: func (cert *Certificate) Releases(tx *sql.Tx) ([]*Release, error) {
  	var releases []*Release
  
  	rows, err := tx.Query("SELECT release FROM roots WHERE ski=? AND serial=?", cert.SKI, cert.Serial)
  	if err != nil {
  		return nil, err
  	}
  
  	for rows.Next() {
  		rel := &Release{
  			Bundle: "ca",
  		}
  
  		err = rows.Scan(&rel.Version)
  		if err != nil {
  			return nil, err
  		}
  
  		releases = append(releases, rel)
  	}
  	rows.Close()
  
  	rows, err = tx.Query("SELECT release FROM intermediates WHERE ski=? AND serial=?", cert.SKI, cert.Serial)
  	if err != nil {
  		return nil, err
  	}
  
  	for rows.Next() {
  		rel := &Release{
  			Bundle: "int",
  		}
  
  		err = rows.Scan(&rel.Version)
  		if err != nil {
  			return nil, err
  		}
  
  		releases = append(releases, rel)
  	}
  
  	for _, rel := range releases {
  		err = rel.Select(tx)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	return releases, nil
  }
docs: // Releases looks up all the releases for a certificate.