Setup script improvements. Initial data migrations.