adding retry mechanism to UpdateItem and PutItem