(1655) - Make genDBUrl and replicateOnServer both use genUrl

A very straight forward cleanup to get rid of duplicate code in genDBUrl and to make replicateOnServer's URL be consistent with the behavior everywhere else.