Re-install esx and make sure that the database is properly installed as well.