'Creates the declarative base.'

def make_declarative_base(self, metadata=None):

    base = declarative_base(cls=Model, name='Model', metadata=metadata, metaclass=ModelDeclarativeMeta)
    base.query = _QueryProperty(self)
    return base
