completed database,testing pageController