Fix handling of non-installed sqlite3
Always emit 'end' events for SQLite3
Add better test for mixing pools with transactions