save to and retrieve from dynamodb implemented