code: func WriteACIInfo(tx *sql.Tx, aciinfo *ACIInfo) error {
  	// ql doesn't have an INSERT OR UPDATE function so
  	// it's faster to remove and reinsert the row
  	_, err := tx.Exec("DELETE from aciinfo where blobkey == $1", aciinfo.BlobKey)
  	if err != nil {
  		return err
  	}
  	_, err = tx.Exec("INSERT into aciinfo (blobkey, name, importtime, lastused, latest, size, treestoresize) VALUES ($1, $2, $3, $4, $5, $6, $7)", aciinfo.BlobKey, aciinfo.Name, aciinfo.ImportTime, aciinfo.LastUsed, aciinfo.Latest, aciinfo.Size, aciinfo.TreeStoreSize)
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // WriteACIInfo adds or updates the provided aciinfo.