protected static function getDbConfig()
    {
        static $config = null;
        
        if (!$config) {
            $config = Container::getConfig()->getConfig('db');
            if (!is_array($config)) {
                throw new ArchException('Key db must be declared in application configuration');
            }
        }
        return $config;
    }