returning data from dynamo db to user in json format