added back branding manager sql for the second time