Force the database readonly when checking the file version