Update populate file to set up relationships