adding references to sql