Don't use transactions
Check for all errors after executing queries
Print out sqlite3_threadsafe() result