Control Panel: attribute manager sql bug-fix