Fixed compatibiity issue with sqlalchemy 0.8.3.

Fix for issue #5.