Automated derivation of global authorizations for database federations