added base insert code to dynamo