add support for mapped models. some fixes to work with SqlAlchemy 0.8>