Use IRefs in Db
Oops: Don't print empty cmds for targets
TODO
Oops: Leaked outputs registered separately, so they don't get recognized as removed ordinary outputs