devices controller saving to associative tables