TODO: try DB triggers for table renames.