In case of replay mode, an expunge operation needs to happen against the database to remove existing entries for a workflow.
The expunge operation works correctly for mysql backend but not for sqlite as cascaded deletes are not supported.
Right now, the database does not get purged fully . hence we see some integrity constraint errors in the logs, that will make repopulation slower. It is not a FATAL error though.
Instead, in case of sqlite, we should take a backup of the database.