Update TokenWriteTask Query
When querying for Bags to write Tokens for, we currently only use the BagStatus. We want to update that to make sure we only query for Bags which have the same number of files and tokens. We should first see if we can find a way to do this with QueryDSL so that everything can be done within the DB.