     var postSubtitleArray = [String]()
     var postAuthorArray = [String]()
     var postImageURLArray = [String]()
+    var postUIDArray = [String]()
     
     override func viewDidLoad() {
         super.viewDidLoad()
-        
-        db = Database.database().reference()
         
         let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 38, height: 38))
         imageView.contentMode = .scaleAspectFit

    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = feedTableView.dequeueReusableCell(withIdentifier: "FeedPostCell", for: indexPath) as! FeedTableViewCell
        
        cell.tapAction = { [weak self] (cell) in
            cell.likeButton.setImage(UIImage(named: "liked_like"), for: .normal)
        }
        cell.postSubtitle.text = postSubtitleArray[indexPath.row]
        cell.postAuthor.text = postAuthorArray[indexPath.row]

    }
    
    func getDataFromServer() {
        self.db = Database.database().reference()
        self.db.child("posts").queryOrdered(byChild: "timestamp").observe(.childAdded, with: { (snapshot) in
            let posts = snapshot.value! as! NSDictionary
            
            let postIds = posts.allKeys
