refactored code
fixed speling mistake
Merge branch 'master' of https://github.com/thequbit/sql2api