replace from mongo to dynamodb