database.py changes