minor fixes to sql example