functional homepage from DB data