FIxed a mistake in database.py