work on sql for completed polls method