add stuff_db.py
fix stupid bug in stuff_db.py