Dbs3 comparision fix

HI @YuyiGuo,

this patch fixes a bug in the comparison script and wrong variable name was used. In addition, I did adjust the code style.

Could you review and merge, please?

Thanks,
Manuel