Another edit to sql