Fix deletion of facts from db.