The Mayor of York and North Yorkshire, David Skaith, has told rail chiefs it is essential residents are connected by rail to opportunities in the region and beyond.