Improved getVulnerabilities from database

Added getVulnerabilities matched on properties.
Changed getVulnerabilities to return HashSet to avoid dups.