fixing db save of storage samples