Add get_dos_from_id method and parse_dos option in mgdb