PyQt4 Window Database