KRACOEUS-7109 : Fixing staging sql