More work on User polymorphism, SQLAlchemy scoped sessions