[#71278170] Refactored the are_friends? method to minimize db query time and improve performance

Signed-off-by: Mike Kauffman <mike.a.kauffman@gmail.com>