Basic implementation of writing from firebase