added option for upstream_db_path