Added a check in Global.java to ensure DB is not corrupted at startup