You have to add some data to create it.
local tablesetup = [[CREATE TABLE IF NOT EXISTS place (id INTEGER PRIMARY KEY, name, xcor, ycor);]]
db:exec( tablesetup )
local testvalue = {}
testvalue[1] = 'Name6'
testvalue[2] = 'x'
testvalue[3] = 'y'
local tablefill =[[INSERT INTO place VALUES (']]..x..[[',']]..testvalue[1]..[[',']]..testvalue[2]..[[',']]..testvalue[3]..[[') ]]
also remember to use this to close it after app exits.
local function onSystemEvent( event )
if( event.type == "applicationExit" ) then
db:close()
end
end
Runtime:addEventListener( "system", onSystemEvent )