Bug fix for lookups on an IP address when one may already exist in the database (race condition)