storage - add query and delete function