code: func WriteRemote(tx *sql.Tx, remote *Remote) 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 remote WHERE aciurl == $1", remote.ACIURL)
  	if err != nil {
  		return err
  	}
  	_, err = tx.Exec("INSERT INTO remote VALUES ($1, $2, $3, $4, $5, $6)", remote.ACIURL, remote.SigURL, remote.ETag, remote.BlobKey, remote.CacheMaxAge, remote.DownloadTime)
  	if err != nil {
  		return err
  	}
  	return nil
  }
docs: // WriteRemote adds or updates the provided Remote.