Clean up "orphaned" db entries during batch deletion