Removed old script, rewrote it in the IndexController with Zend_Db_Table_Abstract extended models. Added database metadata cache (rememober to chmod the folder to 777).