Changing the way I write data to Firebase.