better output in DB.py