adds PUT and GET requests to Firebase API