                 
                 // child by auto id is a firebase function that prevents reuse of id and makes unique
                 // add the message to the set value
-                                Database.database().reference().child("users").child(user.uid).child("messages").childByAutoId().setValue(message)
+//                                Database.database().reference().child("users").child(user.uid).child("messages").childByAutoId().setValue(message)
                 
                 // after selecting a row, go back to the root to see any remaining messages
                 // need this pop back after viewing
-                self.navigationController!.popToRootViewController(animated: true)
+//                self.navigationController!.popToRootViewController(animated: true)
                 
                 
                 

//                    }
//                })
                
//                let ref = Database.database().reference().child("users").observe(DataEventType.value, with: {(snapshot) in
//                    print("here")
//                    print(snapshot.childrenCount)
//                })
//                
                
                
//                ref.queryOrdered(byChild: "Des").queryEqual(toValue: "11").observe(.childAdded, with: { snapshot in

                
                
//                
//               let ref: DatabaseReference!
//                ref = Database.database().reference()
//                print(ref.child("users"))
//                
