Change to sql data