Fixed database.py.