SQL to Table display functions added to preheader file