Switch to localStorage based database for persistance