More fixes in DatabaseLoader

Also added disableAllPlugins to PluginLoader