Update populate.php

"Final" version of populate