Changing db layout for storage charts

see #240