Check whether db format is valid.