added button to toggle database from firebase to local storage