# How to connect Rasa/X to db

**URL:** <https://forum.rasa.com/t/how-to-connect-rasa-x-to-db/26329>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [March 20, 2020, 12:55am UTC](https://forum.rasa.com/t/how-to-connect-rasa-x-to-db/26329 "2020-03-20T00:55:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![amvas](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@amvas](https://forum.rasa.com/u/amvas)\
**Post date:** [March 20, 2020, 12:55am UTC](https://forum.rasa.com/t/how-to-connect-rasa-x-to-db/26329/1 "2020-03-20T00:55:21Z")

</div>

Hello all and @akelad,

I have two questions reading connecting Rasa to DBs::

- I would like to store conversation logs in a db. I have Rasa and Rasa X implemented/deployed LOCALLY. I know Rasa X has postgresql db build in, can I use this locally? If so, how (could you please provide an example).

- I have a sql db holding client information (name, phone, etc), I would like to know how I can query this db through Rasa (or Rasa X), instance for authentication purpose? Could you please explain how?

Thanks, AV

---

_[View the full topic](https://forum.rasa.com/t/how-to-connect-rasa-x-to-db/26329)._
