Check out StepSqlite PL/SQL compiler for Sqlite on iPhone
Metatranz StepSqlite alpha It makes writing database interfaces for Sqlite super easy - you can use variables directly in SQL - no more writing binds by hand, write stored procedures, functions, packages, triggers (with procedural code),cursors, even do date operations easily using built in operators -
There is an easy to follow tutorial on the site.