connect to sql api on localhost