fix newPoll not adding to db