change db and add some functions in class page
fix conflict in classpagecontroller