modify print_db.py.