bug fix in sql scripts
Merge branch 'master' of https://github.com/kumar-physics/general-scrips