added -reg_id reg... option to dump_db