To fix your database, take a look at this thread:
http://communities.vmware.com/thread/75259
For upgrading look here:
http://www.vmware.com/support/vi3/doc/releasenotes_esx301_vc201.html#upgrading
and:
http://www.vmware.com/pdf/vi3_301_201_installation_guide.pdf