Getting data into a database from Homeassitant

Hello guys,
I am using hassbian in which home assistant is installed on a raspberry pi. A z-wave stick has been connected to the raspberry which is interfaced to some sensors in my room. I want to get the data of those sensors into a data base so that i can use it for other purposes. I have no idea of what will be the format of the data.
Thank you.

take a look at

See if that will give you what you need. I use it to dump everything into a Maria DB database and then my other half pulls stuff from that for another project.

Thank you very much
I will try that