Then delete /var/lib/rpm/__db.*
and then run the command:
rpm --rebuilddb -vv
Nice one :) Thanks Tim