updating sql, had sql syntax error