Update DbConnection.py

QGIS 2 modification