Update spatialite.py

QGIS 2 modification