Using promises to avoid callback hell
Retrieving votes for the selected session id