changing sql statement upclookup