now displays polls and their responses from the database