Clean up User#completed_polls solution

I've added a raw SQL solution and cleaned up the heredocs in the ActiveRecord solution.