Added code for inserting into Dynamo