Added ability to add poll

poll structure including categories questions and answers
test page for adding a new poll
added function to get last inserted id
poll repository with ability to add a poll
null helper can now also check objects
poll controller which constructs poll structure on add