Bugfix: rebuild_db.py not logging anything.