Almost done with main page template, getting data from DB and so on