Voting buttons work in database
Sorting now works properly