bz19372: Check that we can read from the version table on DB load

I'm not sure if this makes a difference, but the traceback in the
ticket crashed on get_version().  I added a call to that in the
database load code.  It's not going to affect performance and it seems
good to fail early, rather than in the later code.