sql query to show domain and relative servers