[#1427] add contitional to allow 0.8 sqlalchemy