add enconding to sql