Implements posting data to firebase