established connection to sql