This is the opensource from a SQLite3 iOS talk I am giving.