zend_translate with mysql database
===

currently i have an zend application with translation plugin as below

    class Zc_Controller_Plugin_LangSelector extends Zend_Controller_Plugin_Abstract
    {
	

	
	public function preDispatch(Zend_Controller_Request_Abstract $req)
	{
		
		$lang = $req->getParam('lang','');
		
		if($lang !== 'en' && $lang !== 'de')
			$req->setParam('lang','en');
		
		$state = $req->getParam('state');
		
		$lang = $req->getParam('lang');
		if($lang == 'en')
		
		
		
		$zl = new Zend_Locale();
		$zl->setLocale($locale);
		Zend_Registry::set('Zend_Locale',$zl);
		
		$translate = new Zend_Translate('csv',APPLICATION_PATH.'/configs/lang/'.$lang.'.csv',$lang);
		
		Zend_Registry::set('Zend_Translate',$translate);
		
		
	}
      }

also i have enabled plugin in application.ini as follow

    resources.frontController.plugins.DetectCountry =    
           "Zc_Controller_Plugin_LangSelector"

i have created a folder name lang and inside i have create another 2 file named en.csv and fr.csv. Currently the translation is read from the .csv file, but i would to have the translation to read/write from db, so that i can administer to add/delete new key value  fields directly from db.Thanks


