more fixes for sectiondb markup code