fixed crasher with databaseconfig and several other issues regarding memory in dbus and database plugins