factor patent_parser out of patent_aux_db and add test