Aspects of Database Management in the Cloud