modified db.py
change database commit