Code cleanup
Added functionality to push the logs to DynamoDB