Where is the Asterisk Database?

When we use the DBPut() DB(),etc… where is locate that Database by default?
I mean, because if i want to upgrade the asterisk, i want to preserve the Database…
Where is located?
I’m using asterisk 1.8.etc

/var/lib/asterisk/astdb

Thanks BRO!