The answer I'm going to write points out some things that I don't understand and a solution proposition.
First of all I don't understand your CREATE TABLE
statement, you are not giving any datatype (for example: ID INT NOT NULL
, not just ID
).
Second, try to provide a success and error callback everytime you have to interact with the DB.
Third, and this is the real proposed solution, try to return a boolean in the callbacks, as specified in this Apple document.
You're not specifying if the errors happens in any platform or only on a specific one, this could be another interesting info.