Refactored match_names_to_addresses to use mongodb