Base for sqlalchemy