Saving records via firebase