Implemented a basic page system via database