Sqlite3 progress handler

Related to my sqlite3_interrupt PR. I found a mailing list thread suggesting this as an alternative to sqlite3_interrupt when only canceling the currently executing statement is desired. I think it would be prudent to add both to the library.