fix Database.py