added destroy db in abstract and call from magento config apply handler, implements cleanup of db connection to avoid too many mysql connections for large settings files. in the future this should be refactored to use one db connection instead of re-instantiating them over and over.