bug fix if load_from_sql is not fed with declarative base