Implement of the batch sql job button