Fix SQL upgrade snippet for executable scripts, now tested ;-)