Update get_unattached_attachments

Update get_unattached_attachments to accept either product or category lookup