connects to firebase