Fixed dynamo db connection to use older API that works