Change dynamoDB to get last version