Generalize db url