post to dynamodb in background
fix var reference