getConnection()->select() ->from($installer->getTable('core/config_data')) ->where('path LIKE ?', 'google/googlebase/password'); foreach ($installer->getConnection()->fetchAll($select) as $row) { $bind = array( 'value' => Mage::helper('core')->encrypt($row['value']) ); $where = array( 'config_id=?' => $row['config_id'] ); $installer->getConnection()->update($installer->getTable('core/config_data'), $bind, $where); }