Fixed up update() and destroy() to provide the necessary api for updateAll and destroyAll to work.