Change function for adding goals to Firebase