Duplicate errors means you already ran the upgrade script. The mysql query could be that there are no categories that do not have empty catavatars but should not affect any operation of the code.
The profile thing go to admin and edit your profile template and make template this
Code:
Content visible to verified customers only.