Write sections to load data and select records