added vote error handling and added adduser and creatgame database methods to controller