fixed bug in populate_db.pl