iplookup to select proper db host