Obfuscates password from a database URL.

def safeDbUrl(db_url):
    """Obfuscates password from a database URL."""
    url = urlparse(db_url)
    return db_url.replace(url.password, "****") if url.password else db_url