title: How to use Peewee with Tornado perfectly
body: <p>I'm useing peewee with my tornado webapp,when I read peewee's document,I found:</p>
  
  <p><strong>Adding Request Hooks</strong></p>
  
  <p><em>When building web-applications, it is very important that you manage your database connections correctly. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly.
  These steps will ensure that regardless of whether you’re using a simple SQLite database, or a pool of multiple Postgres connections, peewee will handle the connections correctly.</em></p>
  
  <p><a href="http://docs.peewee-orm.com/en/latest/peewee/database.html" rel="nofollow">http://docs.peewee-orm.com/en/latest/peewee/database.html</a></p>
  
  <p>Insides,it tells how <em>Flask Django Bottle</em>...to use that except the solution for Tornado</p>
  
  <p>I wonder it's a easy way for tornado to solve this problem? Or this doesn't matter at all? </p>