--UCCPAR-499, added is_active check in query to retrieve active relationships