- backport to fix #bz243722, bz#244148, Applications using qt-mysql crash if database is removed before QApplication is destroyed