compact() and use db_delete... everywhere similarly