getRelatedProducts improvement

I've rewritten this function to essentially do the same thing using the ss datamodel