Conected database logic for sections up to the navigation menu