1. A query handling arrangement of computing devices in a federated database system comprising communication layers in which the computing devices operate, the federated database system comprising data storing applications configured to store data in corresponding databases in the federated database system, wherein the data storing applications operate in a first communication layer of the communication layers and the databases operate in a second communication layer of the communication layers, the query handling arrangement of computing devices comprising: a query handling device operating in a third communication layer of the communication layers comprising at least one processor and memory configured to: receive a database query from a query generating application operating in a fourth communication layer of the communication layers, the query comprising a request to obtain data from the databases operating in the second communication layer, establish a connection to a data usage profile announcing computing device of the computing devices operating in the second communication layer, responsive to establishing the connection, receive, from the data usage profile announcing computing device, one or more data usage profiles defining allowed use of the data by the query generating application and location information identifying a location of one or more databases identified in the data usage profiles in the federated database system, wherein the location information comprises addresses of the one or more databases in the second communication layer of the federated database system, determine at least one of the data usage profiles of the one or more data usage profiles related to the database query, transmit, to the one or more databases of the databases operating in the second layer identified in the at least one data usage profile, a request to obtain the data identified in the at least one data usage profile using the location information, receive the obtained data from the databases operating in the second communication layer identified in the database query, and transmit the obtained data to the query generating application to respond to the database query, wherein the second communication layer comprises a database layer of the federated database system and wherein the third communication layer comprises a data grid layer of the federated database system.