connects to dynamo db