added entity for competition page; creating pages when competition is created; added cascade removing to entities; optimizations in entities