Fixing SQL semicolons and Uppercase