change connectedRef to Firebase's one