Line 136 sets `wasAdded` to `YES`. So if the prepare succeeds but the insert fails, you've got a bug.