FIX ISSUE WHERE POLLS WERE NOT UPDATING

refactor poll refreshing
BEGIN IMPLEMENTATION OF SAVING LIVE POLL TO DATABASE

server saves whether poll is live and
will notify the browser if the poll is set to live using socket