Fix issue #34
Fixed a regression in comparedb
Fixed comparedb, needs some testing thought because apparently i'm wa…
…y behind the diff it outputs or the output is not relevant
I am merging this for now as it looks right but I have not tested it yet. I'll test it later after merge and before cutting a new release.