The Ins and Outs of Effective Smart Grid Data Management