Fix sqlite3 support. Fixes #160.