1. A method of accessing a database by a database interface of an application program comprising: receiving a request to access database data comprising a set of parameters; determining a place in the application program code that requested the database data; reading a set of usage statistics, the usage statistics comprising statistics showing how the database data is used by the application program; amending the set of parameters if the usage statistics indicate that the application program will not use the database data requested according to the set of parameters; and fetching a subset of the database data from the database based on the amended set of parameters.