Code to support the use of databases with the PyQt framework