Complete rewrite of yafdb-batch-validate