docs: function bot (job, done) {
    debug('db job')
    debug(job.data)
    debug('Running : ' + job.data.title)
    var sql = job.data.sql
    debug(sql)
    var interval = job.data.interval || defaultInterval
    debug('interval is', interval)
    var config = job.data.config
    debug('config', config)
  
    if (!sql || !config) {
      console.error('sql and config required')
      done()
      return
    }
  
    wcDB.runSQL(sql, config, null).then(function (ret) {
      debug(ret.ret)
      ret.conn.close()
      console.log("db results", ret.ret)
      setTimeout(done, interval * 1000)
    }).catch(function (err) {
      debug(err)
      setTimeout(done, interval * 1000)
    })
  }