Fix rename_table to avoid syntax error on postgresql.

Fix for #122.