Added a method to verify integrity of database file