CM increase upgrade SQL's count + add missing statement