DQConnectionPriv: The lastQuery attribute is changed to be a pointer to QSqlQuery
Refactor DQSql - It is no longer an implicitly shared classes.

Changes
 * Changed to explicitly sharing class
 * Added setLastQuery()
 * m_lastQuery attribute become a pointer to QSqlQuery
Merge branch 'exp-fix-lastquery' into exp-travis