How to access to the database and get files?

be simple as possible

You really need to provide a bit more information. What do you mean by ‘the database’? Have you created one locally on the device/simulator sandbox? Are you packaging a pre-populated database with your app? Does it need to be writable or is it just for read only? Both are quite simple to do. Just be a little more specific as to your needs. 

I suggest trying to use a myData.lua file here is a tutorial it has worked perfectly for me.

https://coronalabs.com/blog/2013/05/28/tutorial-goodbye-globals/

Regards,

Matt.

You really need to provide a bit more information. What do you mean by ‘the database’? Have you created one locally on the device/simulator sandbox? Are you packaging a pre-populated database with your app? Does it need to be writable or is it just for read only? Both are quite simple to do. Just be a little more specific as to your needs. 

I suggest trying to use a myData.lua file here is a tutorial it has worked perfectly for me.

https://coronalabs.com/blog/2013/05/28/tutorial-goodbye-globals/

Regards,

Matt.