1. A method of gathering data from a database, comprising: receiving a query statement, including query constructs of a first query language format and a reference to at least one previously defined abstract query containing logical fields corresponding to physical fields of the database; obtaining the referenced abstract query; and generating a query executable against the database, based on the referenced abstract query, as modified by the first query language constructs.