save db data to localStorage