prepare for polling and store this poll data into database just as document specified