#1105 When migrating CMS, retrieving already migrated scripts from database before continuing migration