first effort at supporting deletes in the migration script; pouchdb itself requires some fixes