Generally in case of Upgrades the files are replaced by Softaculous and then a link is provided to the user where they can visit the link and the database is updated by the script itself.
And in some scripts the database update is done automatically by Softaculous and it is handled by the installation details stored by Remote Softaculous.