Added code to actually convert the table in the file
Actually working table replace