modify factory.py
add save database for jiaoshi