split rating table into one for brands, and one for companies

fixed bad code for initializing and clearing tables