Fix DB URL construction