enhanced db saver to conform to graphene saving algo