Added delete function

edited storeData fucntion