updated upgrade script to handle old params.
Altering the print_headers funciton in the table lib