docs: function bin(argv) {
    // setup config
    var config = require('../config/config.js')
  
    program
    .option('-d, --database <database>', 'Database')
    .option('-t, --tag <tag>', 'Tag')
    .parse(argv)
  
    var defaultDatabase = 'media'
  
    config.database = program.database || config.database || defaultDatabase
    var q = program.args[0] || ''
  
    params = {}
    params.q = q
    params.tag = program.tag
  
    qpm_media.search(params, config).then(function(ret){
      console.table(ret.ret[0])
      ret.conn.close()
    }).catch(function (err) {
      console.error(err)
    })
  
  
  }