Fix #10 Add check for valid poll in resultstable.html, add teams query to index view