update and create into firebase