SID to AD objects conversion using SQL query.