1. A method for defining categories for a set of data comprising: selecting, by a computing processor, a plurality of attributes from a group of attributes, each attribute describing a possible data item in the set of data; selecting, by the computing processor, a logic template from a group of logic templates, each logic template comprising a predetermined logic expression containing one or more variables; and assigning, by the computing processor, one or more selected attributes to each variable within the selected logic template; producing, by the computing processor, a logic expression defining the data category based on the assigned one or more selected attributes and predetermined logic expression of the selected logic template; and validating, by the computing processor, one or more data entries stored in a database based on the data category defined by the produced logic expression.