code: def db_command(parser_args):
      
      from synergy.db.manager import db_manager
  
      if parser_args.reset:
          db_manager.reset_db()
          # initialize DB with the context.process_context entries
          parser_args.update = True
  
      if parser_args.update:
          db_manager.update_db()
docs: Manages Synergy DB state