fix db address if port in http url