set up connection to sql