Adding qsql changes