## Retrieving conversation from SQLTracker Store and continuing with the previous conversation

I found a thread where someone was asking something similar and he managed to find a solution. [Here](http://forum.rasa.com/t/solved-retrieving-conversation-from-mongotrackerstore-redistrackerstore-and-continuing-with-the-previous-conversation/3084) is the link. I'm just trying to figure out where did he place this piece of code.

The gentlemen that started this thread said that the solution was this piece of code:

```python
from rasa_core.trackers import DialogueStateTracker
tracker1 = DialogueStateTracker(sender_id, domain.slots)
events = db.retrieve(sender_id).as_dialogue().events
for event in events:
    tracker1.update(event)
```

hey [@akelad](https://forum.rasa.com/u/akelad) from the above solution, where do I insert the code? would really appreciate your help on this.

[@ashukrishna100](https://forum.rasa.com/u/ashukrishna100)

Hie, where do you insert this piece of code? inside actions.py? could you show the sample of your code?
