Add sqlite3 as optional dependency