First straight implementation of data.php to load all the pages data when the index is loaded