Add __tablename__ to translation tables

This makes it easier to write introspection scripts.