Fix in restoredatabase.py