Networking for distributed databases