[#1427] add contitional to allow 0.8 sqlalchemy
Merge branch '1427-sqlalchamy-08-compatability'