refactor display_create_table.lib.php