As to the sqlite question, I'm not positive. In my own code I
initialize the first time the application is executed.
The idea of running code has a caveat in the contract to allow running
any interpreted code using apples own interpreters, of which UIWebView
is one.
All this is to say that you can load an external html file and execute
it and still be within the boundaries of the contract.
-- Jeff