use PUT when doc has id or id and rev