add torndb.py

Signed-off-by: fuqiang89 <wfuqiang89@gmail.com>