Fixes #58

A more rebust fix to this should be applied. One that will prevent a
crash if the the database format changes again.