Fixed sql issues
Merge branch 'master' of https://github.com/frosticus/thecourseforum_data_tool
Merge branch 'master' of https://github.com/frosticus/thecourseforum_data_tool