JInstallerAdapters code cleanup: $db and unset()