qscript draft 1 + sql