changed db.py file again