code: def reverse(args):
    
  
    from .query import Database
    db = Database()
  
    output = sys.stdout
    if args.selftest:
      from bob.db.utils import null
      output = null()
  
    r = db.reverse(args.path)
    for f in r: output.write('%d\n' % f.id)
  
    if not r: return 1
  
    return 0
docs: Returns a list of file database identifiers given the path stems