Fix: consider base classes while determining table names
                    reduce(lambda x, y: x or y, [hasatt])

Example use case: Standard mixin which defines the table names

```python
class StandardMixin(object):
@declared_attr
def __tablename__(cls):
return cls.__name__.lower()
```