The sys_db_changelog table contains the update script file names that were applied to the database.
By default, when you start an application, Cuba tries to apply all update scripts that are contained in the core\db\update[ db name] folder but have not been marked in the sys_db_changelog.
This is described in detail in the documentation.