SQL: Fix syntax errors
Merge branch 'master' of https://github.com/DarkstarProject/darkstar