Fixing a few dynamodb issues.