Added SQL operations to be performed on the database and introduced validation on the data following upgrade.