How to use sqlalchemy or other ORM with panel?

The first question is how to ensures that my SQLAlchemy sessions get properly closed/cleaned up so that objects aren’t shared when multiple users use it?

I may find a solution for tornado,but I don’t know if it is the proper way in panel?
Another solution may be this,but I cannot found example in panel.

Another question is that as tornado is an asynchronous web server,are there any more suitable ORM for panel,rather than sqlalchemy?

Now my app only query the postgresql database,not modify the data.In this case,are my worries above unnecessary?