misinterpreted nesting of for loop
Merge pull request #38 from cglewis/harden_sql

misinterpreted nesting of for loop