use sql for auth task_run