Small fixes to the scripts
The final version

This is the exact set of script I used for my presentation at DOAG2014.
The presentation itself is here:
http://www.slideshare.net/mariselsins/doag-2014-maris-elsins-when-sqlid-
is-not-enough