A framework for scientific data management in the cloud