[TW151] Updated qc command with crash fix and fixed sql.