Converting to dynamo for storing traffic rules