added tournament MVC and fixed dbyml