Fix affected rows on delete for sqlite