Extend declarative_base class