connect table with data
implemented upvote