rewrite add command to use dagwriter

moved a pinner into the dagwriter for inline pinning
or `ImportReaderDag`