fix driver exception conversion for newer SQLite versions
Merge pull request #594 from deeky666/fix-sqlite-driver-exception-conversion

Fix driver exception conversion for newer SQLite versions
Remove unused imports
Merge pull request #593 from JeroenDeDauw/unusedimps

Remove unused imports