Implemented "rename_table" to use "rename"

The "rename" function now returns a table when implemented with the
"rename_table" function,