This function will copy an SQLlite database (or any binary data file) from your app bundle and put it into a writable area like system.DocumentsDirectory.
A couple a months ago I started writing an ORM for Corona SDK projects, this is what I have reached so far, I hope some of you find it handy.
All the information of how to use it is in the Repo.
ModeloEspecial is an ORM that is inspired heavily by Backbone.Model. It takes an object oriented approach to database interaction.
We are using this in production, and it has already saved us hundreds of lines of code, in addition to making it more modular and understandable.