1. A method for associating a document file with a record in a reference database, the method comprising: receiving the document file, the document file comprising unstructured data related to a record in the reference database; organizing data extracted from the unstructured data in the document file into an array of strings; obtaining a first set of strings by filtering at least a portion of the array of strings using at least one of: string position, position of a portion of a string, string value, value of a portion of a string, string format, format of a portion of a string, a property of one or more characters within a string, and string length; comparing the first set of strings from the array of strings against a comparison reference database comprising a plurality of records from the database, wherein a record comprises at least one data field element; dynamically generating a match pattern by selecting, from results of comparing the first set of strings from the array of strings against the comparison reference database, a set of matches to one or more data field elements within a record from the plurality of records in the comparison reference database to form the match pattern; determining a number of occurrences of the match pattern within records from the plurality of records in the comparison reference database; and responsive to the number of occurrences of the match pattern within records from the plurality of records in the comparison reference database being below a threshold number, associating the document file with the record corresponding with the set of matches from which the match pattern was formed.