added add/update/delete method for local docs