Flat graphs using Mini Graph Card

I came across this article.

So i deleted the db file and this error was gone. Thank you, @tom_l for pointing me in right direction.
FWIW: Why/how do this type of errors occur?