SQLite Forum

pragma integrity_check; Error: disk I/O error
While checking that, also check that Mozilla isn't actually running while you're doing the integrity check.  SQLite is meant to take care of that problem, but there's a chance that Mozilla assumes that it has sole access to that database file.