SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mag_ww.core_resource' doesn't exist, query was: INSERT INTO `core_resource` (`code`, `version`) VALUES (?, ?)

#0 /var/www/watchwear.com/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/watchwear.com/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/watchwear.com/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/watchwear.com/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `co...', Array)
#4 /var/www/watchwear.com/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `co...', Array)
#5 /var/www/watchwear.com/lib/Zend/Db/Adapter/Abstract.php(576): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `co...', Array)
#6 /var/www/watchwear.com/app/code/core/Mage/Core/Model/Resource/Resource.php(133): Zend_Db_Adapter_Abstract->insert('core_resource', Array)
#7 /var/www/watchwear.com/app/code/core/Mage/Core/Model/Resource/Setup.php(423): Mage_Core_Model_Resource_Resource->setDbVersion('core_setup', '1.6.0.6')
#8 /var/www/watchwear.com/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.0.6')
#9 /var/www/watchwear.com/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#10 /var/www/watchwear.com/app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#11 /var/www/watchwear.com/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
#12 /var/www/watchwear.com/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#13 /var/www/watchwear.com/index.php(86): Mage::run('', 'store')
#14 {main}