New method of saving data in firebase

New method of saving data in firebase