dbrecover fixes for new tape id logic