correct db.py