Methods for Data Management and Data Protection in the Smart Grid