update firebase api calls