scheme to sql