fix syntax error in upgrade .sql