fix qsub log, fix script date,add sql