Update the code of async db storage

added the code for the data to save the intersection array to the async
storage and remove the elements form the array