Fix import of sqlite3 exceptions