Change db query in server_ip_pool