Database connection setup in createPoll, createPoll works.
Added sql