minor mod. to populate_db.py