finish basic poll app (server side)