Fixed plugin framework code and added database plugins

This is an important step in the development because the plugin system is now "workable", which is to say that there are two working database plugins that could theoretically be replaced with plugins from third parties.