convert firebase to localStorage