iterate through data returned from dymamo and started writing to map