New changes to Page class DB class and cat.php