complete refactor PollQuery,splite poll logic out of message query
sync front js to use poll query change