update the connection function to set up the local dynamo connection
differently