# Do I need to proxy connexion from local notebooks to local DB?

**URL:** <https://talk.observablehq.com/t/do-i-need-to-proxy-connexion-from-local-notebooks-to-local-db/3050>\
**Category:** Help\
**Created:** [April 9, 2020, 11:54pm UTC](https://talk.observablehq.com/t/do-i-need-to-proxy-connexion-from-local-notebooks-to-local-db/3050 "2020-04-09T23:54:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliky](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/maliky/32/706_2.png) [@maliky](https://talk.observablehq.com/u/maliky)\
**Post date:** [April 9, 2020, 11:54pm UTC](https://talk.observablehq.com/t/do-i-need-to-proxy-connexion-from-local-notebooks-to-local-db/3050/1 "2020-04-09T23:54:11Z")

</div>

It’s not clear to me how notebooks that one download locally work with local database ?

For example,… I have a django app, serving some vega-lite charts embedded in observable cells and been displayed using a react app as front end.  
For now I use csv and json file as databases but reaching a few 10 of MB of data and doing probably too much joint aggregations, I want to scale (also for best practice) and use DB instead of CSV files. But do I still need to setup the proxy ? If so, why ? Can’t the observable runtime talk directly to the DB ?

---

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [April 10, 2020, 10:03pm UTC](https://talk.observablehq.com/t/do-i-need-to-proxy-connexion-from-local-notebooks-to-local-db/3050/2 "2020-04-10T22:03:02Z")

</div>

The DatabaseClient built-in is only supported when viewing a notebook on [observablehq.com](http://observablehq.com) because it requires your database credentials.

If you want to access a database from an embedded (downloaded) notebook, you’ll need to provide your own implementation of DatabaseClient to the runtime by extending the standard library.

---

<div class="post-metadata">

**Author:** ![dbuzz123](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dbuzz123](https://talk.observablehq.com/u/dbuzz123)\
**Post date:** [May 7, 2020, 4:42pm UTC](https://talk.observablehq.com/t/do-i-need-to-proxy-connexion-from-local-notebooks-to-local-db/3050/3 "2020-05-07T16:42:14Z")

</div>

@mbostock can you provide more details where to start if I want to take this route? Thanks!
