add ref service to get matching subjects and refactor subject matching to reference dao