Page:: now takes data from the database

Page controller now takes data from the database.
Implemented one level of nesting pages.