fixes #3752 - move data population from migrations into seed script
fixes #3659 - use URL host for hostname, not URL itself