Fix download_db to work with Python 2.6.