If a default gateway db exists, pick it.  Otherwise pick the 1st db we find that matches the quality graph.