Fix sql update command