Thanks mol, I already have this code, the problem was the sqlite3.a library.
I solved it like this:
http://hmgforum.com/viewtopic.php?f=43&t=5198&start=170
HMG 3.3.1 (Stable)
Moderator: Rathinagiri