SQLAlchemy integration

I didn't find a solution to problem with subclassing db.Model. Should I just leave these definitions or you have any other ideas?