Added logic to pull info from dynamodb