writing and searching data working with live update