Switched from qmake to cmake. Code changes to make it compile.
Roles works for atleast 9.3 and up. Reorganizing code for communicating with database.