A federated architecture for database systems