Fix update/delete not reflecting in firebase