Never copy a live WAL-mode .db file with plain cp while writes are happening! Instead, use VACUUM INTO 'backup.db' or sqlite3 app.db ".backup backup.db" to create a clean, consistent snapshot safely while your app stays online.
ADVERTISEMENT